package com.zyf.school.manager.controller;

import com.zyf.school.manager.domain.Classes;
import com.zyf.school.manager.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/classes/")
public class ClassesController {

    @Autowired
    ClassesService classesService;

    @RequestMapping("list")
    public String list(HttpServletRequest request){
        return "classes/list";
    }

    @RequestMapping("add")
    public String add(HttpServletRequest request, Classes classes){
        return "classes/list";
    }

}
